import 'dart:ui';

import 'package:flutter/widgets.dart';
import 'package:jm_flutter/jm_flutter.dart';

class JmConfig {
  ///google play版本
  static bool googlePlay = false; //google play版本

  ///调试模式
  static bool debug = true; //调试模式

  ///log等级
  static LogLevel logLevel = LogLevel.verbose; //log等级

  ///是否打开i18n
  static bool i18nEnable = true; //是否打开i18n

  ///默认语言
  static String i18nFallbackFile = "en"; //默认语言

  ///i18n文件目录
  static String i18nBasePath = 'assets/i18n'; //i18n文件目录

  ///App名称
  static String appName = "JmApp"; //App名称

  ///颜色
  static JmColorsData colors = JmColorsData(); //颜色

  static StatusBarType statusBarType = StatusBarType.black; //状态栏样式

  static JmAssetsData assets = JmAssetsData(); //资源

  static JmTextStyle defTextStyle = JmTextStyle(
    fontSize: 17,
    color: defaultTextColor,
    fontWeight: FontWeight.normal,
  ); //默认字体样式
  static JmTextStyle sbuTextStyle = JmTextStyle(
    fontSize: 17,
    color: defaultTextSubColor,
    fontWeight: FontWeight.normal,
  ); //默认字体样式

  static JmTextStyle appBarTextStyle = JmTextStyle(
    fontSize: 20,
    color: defaultAppBarTextColor,
    fontWeight: FontWeight.normal,
  ); //appBar字体样式

  static JmTextStyle toastTextStyle = JmTextStyle(
    fontSize: 17,
    color: defaultToastTextColor,
    fontWeight: FontWeight.normal,
  ); //appBar字体样式

  static JmStyle style = JmStyle(); //样式

  ///app目录
  static String? appDocPath = ""; //文档目录
  static String? appTempPath = ""; //临时目录
  static String? appCachePath = ""; //缓存目录

  static double mobileMaxWith = 600; //手机最大宽度

  static Widget? homeWidget; //首页

  static String? initPage; //初始化页面
  static List<JmPage>? pages; //页面

  static String? sentryDsn; //sentryDsn

  static String developerPassword = "jm202399"; //开发者密码
}
